package com.chendongyang.www.po;//预约充电位信息；

public class appointment {
    private  String chargeS;
    private  String chargeB;
    private  String time;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof appointment)) return false;

        appointment that = (appointment) o;

        if (chargeS != null ? !chargeS.equals(that.chargeS) : that.chargeS != null) return false;
        if (chargeB != null ? !chargeB.equals(that.chargeB) : that.chargeB != null) return false;
        return time != null ? time.equals(that.time) : that.time == null;
    }

    @Override
    public String toString() {
        return
                "充电口：" + chargeS  +
                "  充电位：" + chargeB +
                "  时间段：" + time;
    }

    @Override
    public int hashCode() {
        int result = chargeS != null ? chargeS.hashCode() : 0;
        result = 31 * result + (chargeB != null ? chargeB.hashCode() : 0);
        result = 31 * result + (time != null ? time.hashCode() : 0);
        return result;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public appointment(String chargeS, String chargeB, String time) {
        this.chargeS = chargeS;
        this.chargeB = chargeB;
        this.time = time;
    }

    public String getChargeS() {
        return chargeS;
    }

    public void setChargeS(String chargeS) {
        this.chargeS = chargeS;
    }

    public String getChargeB() {
        return chargeB;
    }

    public void setChargeB(String chargeB) {
        this.chargeB = chargeB;
    }

    public appointment() {
    }

    public appointment(String chargeS, String chargeB) {
        this.chargeS = chargeS;
        this.chargeB = chargeB;
    }
}
